package com.scs.application.modules.svn.service.impl;

import com.scs.application.modules.svn.dto.SVNLockInfo;
import com.scs.application.modules.svn.dto.SVNOperateDTO;
import com.scs.application.modules.svn.enums.SVNFileLockStatus;
import com.scs.application.modules.svn.service.SVNService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 没有SVN下的服务实现类（项目上用的）
 * </p>
 */
@Service
public class NoSVNServiceImpl implements SVNService {
    @Override
    public void setSourceFile(String sourceType, String fileName) {
    }
    @Override
    public SVNLockInfo status(SVNOperateDTO para) {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public SVNLockInfo add() {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public SVNLockInfo lock(SVNOperateDTO svnOperateDTO) {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public SVNLockInfo commit(SVNOperateDTO svnOperateDTO) {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public SVNLockInfo revert(SVNOperateDTO svnOperateDTO) {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public SVNLockInfo delete() {
        return new SVNLockInfo(SVNFileLockStatus.NO_SVN);
    }
    @Override
    public Boolean isSupport(Boolean flagProject) {
        return flagProject;
    }
}
